Refactor GherXunit attributes and tests: update attribute description… #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to documentation and code refactoring to improve readability and maintainability of test scenarios using the GherXunit library. The changes include updates to the versioning in the workflow file, enhancements to the QuickStart guide, and improvements to the README files in both English and Portuguese. Additionally, there are significant updates to the
GherXunit.Corelibrary, including new background context and step methods for testing.Documentation updates:
Codebase improvements:
1.1to1.2to reflect the new changes.FeatureAttributeandRuleAttributedescriptions by removing redundant prefixes.BackgroundTest.Context.cs,BackgroundTest.Steps.cs, andBackgroundTest.cs. [1] [2] [3]…s, enhance async handling, and improve scenario definitionsThis pull request introduces several changes to improve the documentation and refactor the test code for better readability and maintainability. The most important changes include updating the version in the workflow file, adding comprehensive examples and explanations in the
QuickStart.md, and refactoring theBackgroundTestclass to use the Gherkin syntax for defining test scenarios.Documentation Improvements:
QuickStart.md: Added detailed explanations and examples on how to refactor test code using GherXunit to improve readability and maintainability.Refactoring and Code Improvements:
src/base/GherXunit.Core/Attributes.cs: Simplified theFeatureAttributeandRuleAttributeto use the description directly without prefixing it.src/base/GherXunit.Core/Backgrounds/BackgroundTest.Context.cs: Introduced a newBackgroundContextclass to manage the context for theBackgroundTest.src/base/GherXunit.Core/Backgrounds/BackgroundTest.Steps.cs: Refactored theBackgroundTestclass to include step methods for different scenarios, improving code organization and readability.src/base/GherXunit.Core/Backgrounds/BackgroundTest.cs: Defined theFeatureandScenarioattributes using the Gherkin syntax for theBackgroundTestclass, enhancing the structure and clarity of the tests.Workflow Update:
.github/workflows/dotnet.yml: Updated the version environment variable from1.1to1.2.